package config;

import Bean.User;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserBeanConfig {

    @Bean("getUser")
    public User getUser() {
        return new User("zhangsan");
    }

    @Bean("getUser1")
    public User getUser1() {
        return new User("lisi");
    }
}
